package com.ruoyi.system.service.project.impl;

import java.util.List;

import com.ruoyi.system.domain.project.standard.StandardTeacher;
import com.ruoyi.system.mapper.project.StandardTeacherMapper;
import com.ruoyi.system.service.project.IStandardTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 标准教师Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-28
 */
@Service
public class StandardTeacherServiceImpl implements IStandardTeacherService
{
    @Autowired
    private StandardTeacherMapper standardTeacherMapper;

    /**
     * 查询标准教师
     * 
     * @param id 标准教师主键
     * @return 标准教师
     */
    @Override
    public StandardTeacher selectStandardTeacherById(Long id)
    {
        return standardTeacherMapper.selectStandardTeacherById(id);
    }

    /**
     * 查询标准教师列表
     * 
     * @param standardTeacher 标准教师
     * @return 标准教师
     */
    @Override
    public List<StandardTeacher> selectStandardTeacherList(StandardTeacher standardTeacher)
    {
        return standardTeacherMapper.selectStandardTeacherList(standardTeacher);
    }

    /**
     * 新增标准教师
     * 
     * @param standardTeacher 标准教师
     * @return 结果
     */
    @Override
    public int insertStandardTeacher(StandardTeacher standardTeacher)
    {
        return standardTeacherMapper.insertStandardTeacher(standardTeacher);
    }

    /**
     * 修改标准教师
     * 
     * @param standardTeacher 标准教师
     * @return 结果
     */
    @Override
    public int updateStandardTeacher(StandardTeacher standardTeacher)
    {
        return standardTeacherMapper.updateStandardTeacher(standardTeacher);
    }

    /**
     * 批量删除标准教师
     * 
     * @param ids 需要删除的标准教师主键
     * @return 结果
     */
    @Override
    public int deleteStandardTeacherByIds(Long[] ids)
    {
        return standardTeacherMapper.deleteStandardTeacherByIds(ids);
    }

    /**
     * 删除标准教师信息
     * 
     * @param id 标准教师主键
     * @return 结果
     */
    @Override
    public int deleteStandardTeacherById(Long id)
    {
        return standardTeacherMapper.deleteStandardTeacherById(id);
    }
}
